#include<stdio.h>
#include<windows.h>

int factorial(int n)
{
	int s,i;
	s=1;
	for (i=1;i<=n;i++)
		s*=i;
	return s;
}

int main()
{
	int i;
	double x;
	for (i=1;i<=10;i++)
		x+=1.0/factorial(i);
	printf("%lf\n",x);
	system("pause");
	return 0;
} 
